<?php
include_once("../config.php");
//$id=$_GET['id'];
$uid=$_GET['uid'];
$uid = str_ireplace($search, '', $uid);
$id=intval($_GET['id']);
$sql="update user set openid='$uid' where id=$id";
mysqli_query($con,$sql);
if(mysqli_affected_rows($con)){
	die('{"status":"1","msg":"注册成功"}');
}else{
	die('{"status":"0","msg":"注册失败，请重试！"}');
}
?>